package com.ali.configuration;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class AutoConfiguration implements ImportSelector {

    //这个方法返回一个全限定类名数组，Spring 会将这些类作为配置类加载到容器中。
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"com.ali.configuration.OSSConfiguration"};
    }
}
